package com.company.module.net.interceptor;//package com.company.app.common.http.interceptor;
//
//import android.content.Context;
//
//import java.io.IOException;
//
//import okhttp3.Interceptor;
//import okhttp3.Request;
//import okhttp3.Response;
//import sixbing.com.interviewone.base.BaseApplication;
//
///**
// * Created by drore on 17/3/16.
// */
//
//public class ReadCookiesInterceptor implements Interceptor {
//
//    @Override
//    public Response intercept(Chain chain) throws IOException {
//        Request.Builder builder = chain.request().newBuilder();
//        String preferences = BaseApplication.getInstance().getSharedPreferences("cookie", Context.MODE_PRIVATE).getString("request-token", "null");
//        builder.addHeader("request-token", preferences);
//        Request build = builder.build();
//        return chain.proceed(build);
//    }
//}
